Given the string "mississippi", if you run the regexp "(i.*s)" you should get "ississ", because regexp assumes greedy. |
Re: greedy regexp The code works as desired on 9.1: ississ is |
Re: greedy regexp Heather_Linsk - Wed May 06 15:42:15 EDT 2009 |
Re: greedy regexp Tony_Goodman - Thu May 07 02:51:56 EDT 2009 Regular expression engine The regular expression engine has changed. Steps have been taken to ensure DXL compatibility but there may be differences in DXL execution between Telelogic DOORS 8.3 and 9.0 and Telelogic DOORS 9.1. If any issues arise, contact Customer Support. |
Re: greedy regexp >> The regular expression engine has changed. Steps have been taken to ensure DXL compatibility but there may be differences in DXL execution between Telelogic DOORS 8.3 and 9.0 and Telelogic DOORS 9.1. If any issues arise, contact Customer Support. I assume the term 'Bluewashed' means that the regular expression parser was replaced with one used by other IBM products. So my questions is what variant of Regular Expressions doe IBM use? Also... The new 9.1 command 'regexp2' operation states that it: Creates a regular expression. Its behavior will not be changed to match the legacy behavior of regexp(). Should be used in all new regular expression code. I am not sure what IBM is communicating in this statement. Does this mean : Its behavior will not be changed (so as )to match the legacy behavior of regexp() or Its behavior will not be changed to match the legacy behavior of regexp() (so that it does not match legacy behavior?) Between the 8.3 and 9.1 manuals the list of symbols useable in the DXL Reference Manual has not changed - however it is clear that a new parser is now in use. ????? Does anyone know which implementation of Regular Expressions is now being used? I know a few - Perl, Java, .NET, Python, PHP, many shell tools... Does IBM use one of these defined implementations, or is it yet another? Each of these are defined implementations are already described in various Regular Expression Reference Manuals. Does anyone (on the inside, maybe ;-) know which parser has been implemented by IBM? |